<?=form_open($this->uri->uri_string(), 'class="main_cont"'); ?>
<?php echo $toolbar?>
<table class="field_box">
	<tr class="field">	
		<td class="key" ><?= lang('role_name_label');?></td>
	    <?php if ($role->id) {?>
	    	<td><?= form_input('name', $role->name, 'class="text" disabled="disabled"'); ?></td>
	    <?php } else { ?>
	    	<td><?= form_input('name', $role->name, 'class="text"'); ?></td>
	    <?php }?>
	 </tr>
	 
	 <tr class="field">	
		<td class="key" ><?= lang('role_description_label');?></td>
	    <td><?= form_input('description', $role->description, 'class="text"'); ?></td>
	 </tr>
	 <tr class="field">	
		<td class="key" ><?= lang('role_parent_id_label');?></td>
	    <td><?= form_dropdown('parent_id', $otherRoles, $role->parent_id, '');?></td>
	 </tr>
</table>
<?= form_hidden('id', $role->id)?>
<?=form_close(); ?>